package org.mymail.mail;

import java.util.HashMap;

import javax.mail.Address;

public class Send {

	public static void main(String args[]) {
		ReadMail.readMail();
		long start = System.currentTimeMillis();
		int mailFwdType = Integer.parseInt(args[0]);
		HTMLMessage m = new HTMLMessage();

		HashMap<javax.mail.Address, SubscriberDetails> addressDetails = new HashMap<Address, SubscriberDetails>();
		addressDetails = Recipients.getAddresses(mailFwdType);
		m.initializeMessage(addressDetails, mailFwdType);

		System.err.println(System.currentTimeMillis() - start);
	}
}